package com.edu.service.impl;

import com.edu.dao.PermissionMapper;
import com.edu.entity.Permission;
import com.edu.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permMapper;
    @Override
    public Set<Permission> getPermissionByRoleId(Integer roleId) {
        return permMapper.getUserPermissions(roleId);
    }
}
